package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.ChatRiskWord;
import com.qumitech.visualnovel.pubdef.dto.chat.RiskWordQueryDTO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ChatRiskWordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChatRiskWord record);

    int insertSelective(ChatRiskWord record);

    ChatRiskWord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChatRiskWord record);

    int updateByPrimaryKey(ChatRiskWord record);

    @Select("select word from chat_risk_word where status=1")
    List<String> getWords();

    List<ChatRiskWord> listRiskWord(RiskWordQueryDTO queryDTO);
    Integer countRiskWord(RiskWordQueryDTO queryDTO);

}